package com.yonghui.sandbox.thread;

import com.yonghui.sandbox.vo.ChildVO;

/**
 * @description: TODO
 * @author: zhangtong
 * @create: 2021-03-15 15:48
 **/
public class ChildTread extends Thread {

    private String name;

    public ChildTread(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        ChildVO childData = getChildData(name);
        System.out.println(childData);
    }


    public ChildVO getChildData(String name){
        ChildVO childVO = new ChildVO();
        childVO.setId(12);
        childVO.setName(name);
        childVO.setDesc("HI," + name);
        return childVO;
    }


}
